<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:sf="http://www.springframework.org/tags/faces"
	template="/WEB-INF/layouts/standard.xhtml"
	xmlns:p="http://primefaces.prime.com.tr/ui" 
	>

	<ui:define name="content">
		<ui:fragment id="obraSearchFragment">
			<div id="obrasSearch" class="section"><span class="errors">
			<p:messages globalOnly="true" /> </span>
			<h2>Buscar Obras</h2>
			<h:form id="mainForm">
				<fieldset>
				<div class="field">
				<div class="label"><h:outputLabel for="searchString">Obra:</h:outputLabel>
				</div>
				<div class="input"><sf:clientTextValidator
					promptMessage="Buscar obras por Nombre, Direccion, Precio, etc">
					<h:inputText id="searchString"
						value="#{searchCriteria.searchString}" />
				</sf:clientTextValidator></div>
				</div>
				<div class="field">
				<div class="label"><h:outputLabel for="pageSize">Cantidad de Resultados:</h:outputLabel>
				</div>
				<div class="input"><h:selectOneMenu id="pageSize"
					value="#{searchCriteria.pageSize}">
					<f:selectItems value="#{referenceData.pageSizeOptions}" />
				</h:selectOneMenu></div>
				</div>
				<div class="buttonGroup"><sf:commandButton id="buscarObras"
					value="Buscar Obras" processIds="*" action="search" /> 
				</div>
				</fieldset>
			</h:form></div>
		</ui:fragment>

	</ui:define>
</ui:composition>